package tt.dz.entity.dic;

import java.io.Serializable;
import java.util.Date;

import tt.dz.util.annotation.PrimaryKey;
import tt.dz.util.annotation.Table;

/**
 * 桩硬件服务器信息
 * @author pengyu
 *
 */
@Table(name="oms_dic_forward_srv_info")
public class OmsDicForwardSrvInfo implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -8431307175843031723L;

	@PrimaryKey
	private Integer forward_srv_id;
	private String forward_srv_name;
	private String main_hardware_ip;
	private Integer main_port_up;//主硬件服务器上报端口：从中间件发送到OMS的端口
	private Integer main_port_down;//主硬件服务器下发端口：从OMS发送到中间件的端口
	private String back_headware_ip;
	private Integer back_port_up;//备用硬件服务器上报端口：从中间件发送到OMS的端口
	private Integer back_port_down;//备用硬件服务器下发端口：从OMS发送到中间件的端口

	/* 通讯协议类型  协议类型  1：EV3C；2：Protocol Translate；3 P2P */
	private String protocol_type;
	/* 通讯协议版本号 */
	private String protocol_version;
	/*当前容量*/
	private Integer current_capacity;
	/*最大容量*/
	private Integer capacity;
	/** 创建时间 */
	private Date create_time;
	/** 创建人id */
	private String create_oper_id;
	/** 更新时间 */
	private Date update_time;
	/** 更新人id */
	private String update_oper_id;
	private Integer valid_flag;
	 
	public OmsDicForwardSrvInfo() {
		super();
	}
	
	public OmsDicForwardSrvInfo(Integer forward_srv_id) {
		super();
		this.forward_srv_id = forward_srv_id;
	}
	public String getForward_srv_name() {
		return forward_srv_name;
	}
	public void setForward_srv_name(String forward_srv_name) {
		this.forward_srv_name = forward_srv_name;
	}
	public Integer getForward_srv_id() {
		return forward_srv_id;
	}
	public void setForward_srv_id(Integer forward_srv_id) {
		this.forward_srv_id = forward_srv_id;
	}
	public String getMain_hardware_ip() {
		return main_hardware_ip;
	}
	public void setMain_hardware_ip(String main_hardware_ip) {
		this.main_hardware_ip = main_hardware_ip;
	}
	public String getBack_headware_ip() {
		return back_headware_ip;
	}
	public void setBack_headware_ip(String back_headware_ip) {
		this.back_headware_ip = back_headware_ip;
	}
	public String getProtocol_type() {
		return protocol_type;
	}
	public void setProtocol_type(String protocol_type) {
		this.protocol_type = protocol_type;
	}
	public String getProtocol_version() {
		return protocol_version;
	}
	public void setProtocol_version(String protocol_version) {
		this.protocol_version = protocol_version;
	}
	public Integer getCurrent_capacity() {
		return current_capacity;
	}
	public void setCurrent_capacity(Integer current_capacity) {
		this.current_capacity = current_capacity;
	}
	public Integer getCapacity() {
		return capacity;
	}
	public void setCapacity(Integer capacity) {
		this.capacity = capacity;
	}
	public Date getCreate_time() {
		return create_time;
	}
	public void setCreate_time(Date create_time) {
		this.create_time = create_time;
	}
	public String getCreate_oper_id() {
		return create_oper_id;
	}
	public void setCreate_oper_id(String create_oper_id) {
		this.create_oper_id = create_oper_id;
	}
	public Date getUpdate_time() {
		return update_time;
	}
	public void setUpdate_time(Date update_time) {
		this.update_time = update_time;
	}
	public String getUpdate_oper_id() {
		return update_oper_id;
	}
	public void setUpdate_oper_id(String update_oper_id) {
		this.update_oper_id = update_oper_id;
	}
	public Integer getValid_flag() {
		return valid_flag;
	}
	public void setValid_flag(Integer valid_flag) {
		this.valid_flag = valid_flag;
	}
	public Integer getMain_port_up() {
		return main_port_up;
	}
	public void setMain_port_up(Integer main_port_up) {
		this.main_port_up = main_port_up;
	}
	public Integer getMain_port_down() {
		return main_port_down;
	}
	public void setMain_port_down(Integer main_port_down) {
		this.main_port_down = main_port_down;
	}
	public Integer getBack_port_up() {
		return back_port_up;
	}
	public void setBack_port_up(Integer back_port_up) {
		this.back_port_up = back_port_up;
	}
	public Integer getBack_port_down() {
		return back_port_down;
	}
	public void setBack_port_down(Integer back_port_down) {
		this.back_port_down = back_port_down;
	}
	@Override
	public String toString() {
		return "OmsDicForwardSrvInfo [forward_srv_id=" + forward_srv_id + ", forward_srv_name=" + forward_srv_name + ", main_hardware_ip="
				+ main_hardware_ip + ", main_port_up=" + main_port_up + ", main_port_down=" + main_port_down
				+ ", back_headware_ip=" + back_headware_ip + ", back_port_up=" + back_port_up + ", back_port_down="
				+ back_port_down + ", protocol_type=" + protocol_type + ", protocol_version=" + protocol_version
				+ ", current_capacity=" + current_capacity + ", capacity=" + capacity + ", create_time=" + create_time
				+ ", create_oper_id=" + create_oper_id + ", update_time=" + update_time + ", update_oper_id="
				+ update_oper_id + ", valid_flag=" + valid_flag + "]";
	}
	
}
